public class Square {
	
	private boolean isBlack;
	private int num;
	
    /** Constructs one square of a crossword puzzle grid.
     * Postcondition:
     *  - the square is black if and only if "isBlack" is true
     *  - the square has number "num"
     */
	public Square(boolean isBlack, int num) {
		this.isBlack = isBlack;
		this.num = num;
	}
	
	public String toString() {
		if(this.isBlack) {
			return "\u25A5\u25A5";
		} else if(num <= 0) {
			return "  ";
		} else if(num <= 9) {
			return num + " ";
		} else if(num <99) {
			return "" + num;
		} else {
			return "  ";
		}
	}
}
